Skip to content

Add a visual treemap mode to disktree-cli - #62

Open
jeremydixon22 wants to merge 2 commits into
tobi:mainfrom
jeremydixon22:codex/terminal-tui
Open

jeremydixon22 wants to merge 2 commits into
tobi:mainfrom
jeremydixon22:codex/terminal-tui

Conversation

@jeremydixon22

@jeremydixon22 jeremydixon22 commented Sep 29, 2026 •

Copy link
Copy Markdown

Adds a visual treemap to the existing terminal binary as disktree-cli treemap [PATH]. It runs the shared scanner in memory and uses the core layout, findings, removal guards, and agent prompt. The terminal binary builds without GPUI. Run it in an SSH terminal to inspect that machine.

  • At 120 columns it shows the mosaic, inspector, findings, and free-space bar. Around 80 it keeps the map, and around 45 it becomes a list. Long paths marquee while the controls stay still.
  • Size, Files, Age, Hidden, and Apparent reuse the completed scan. Free-space estimates use allocated bytes on the measured volume.
  • Omarchy colours are followed when available. Linux supports a static musl build. Local workspace lint and tests, Windows and macOS CLI build checks, and the Linux terminal fixture smoke test pass. Interactive macOS rendering is untested.

120-column width

120-column terminal view

80-column width

80-column terminal view

45-column width

45-column terminal view

The screenshots use assets/tui/fixture.tar.gz with animations paused. Try the fixture with:

fixture=$(mktemp -d)
tar -xzf assets/tui/fixture.tar.gz -C "$fixture"
cargo run --release --locked -p disktree-cli -- treemap --apparent-size "$fixture/scan"

The separate search fix keeps nested empty directory matches reachable in the list. A shared GUI/TUI view model could follow as a separate change, if considered.

@jeremydixon22 jeremydixon22 changed the title Add disktree-tui, a terminal view of disktree-core Add a visual treemap mode to disktree-cli Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant